import { createRouter, createWebHistory } from "vue-router";
// 首页
import Home from '../components/home/Home';
// 订单
import Order from '../components/order/Order';
// 个人中心
import User from '../components/user/User';
// 登录页面
import Login from '../components/login/Login';
// 城市列表
import Citys from '../components/citys/Citys';
// 商品详情
import Details from '../components/details/Details';


const routes = [
	{path:'/', name:'Home', component:Home},
	{path:'/order', name:'Order', component:Order},
	{path:'/user', name:'User', component:User},
	{path:'/login', name:'Login', component:Login},
	{path:'/citys', name:'Citys', component:Citys},
	{path:'/details', name:'Details', component:Details}
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
